package org.app.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.app.Entity.ExercisePlan;
import org.app.Entity.Like;

import java.util.List;

@Mapper
public interface ILikeMapper extends BaseMapper<Like> {
    Integer createCollection(Like like);
    List<ExercisePlan> getAllByCID(String c_id);
    Integer deleteByPidAndCid(Like like);
    Like getById(Integer like_id);
    Like getByCidAndPid(@Param("c_id") String c_id,@Param("p_id") String p_id);
}
